﻿<?xml version="1.0" encoding="utf-8" ?>
<log4net>

  <logger name="History">
    <level value="ALL" />
    <appender-ref ref="History" />
  </logger>
  <logger name="Exception">
    <level value="ALL" />
    <appender-ref ref="Exception" />
  </logger>
  <appender name="History" type="log4net.Appender.RollingFileAppender,log4net" >
    <lockingModel  type="log4net.Appender.FileAppender+MinimalLock" />
    <param name="File" value="log/history/" />
    <param name="AppendToFile" value="true" />
    <param name="RollingStyle" value="Date" />
    <param name="DatePattern" value="yyyy-MM-dd.TXT" />
    <param name="StaticLogFileName" value="false" />
    <layout type="log4net.Layout.PatternLayout">
      <param name="ConversionPattern" value="%n-----------------------------------%r %p[%d %c]-----------------------------------%n%m%n" />
    </layout>
  </appender>
  <appender name="Exception" type="log4net.Appender.RollingFileAppender,log4net" >
    <lockingModel  type="log4net.Appender.FileAppender+MinimalLock" />
    <param name="File" value="log/exception/" />
    <param name="AppendToFile" value="true" />
    <param name="RollingStyle" value="Date" />
    <param name="DatePattern" value="yyyy-MM-dd.TXT" />
    <param name="StaticLogFileName" value="false" />
    <layout type="log4net.Layout.PatternLayout">
      <param name="ConversionPattern" value="%n-----------------------------------%r %p[%d %c]-----------------------------------%n%m%n" />
    </layout>
  </appender>
  <appender name="FileAppender" type="log4net.Appender.FileAppender">
    <file value="log-file.txt" />
    <appendToFile value="true" />
    <layout type="log4net.Layout.PatternLayout">
      <conversionPattern value="%date [%thread] %-5level %logger [%property{NDC}] - %message%newline" />
    </layout>
  </appender>
</log4net>

